package com.liqi.display.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.liqi.display.common.Results;
import com.liqi.display.common.SystemCode;

@RestController
@RequestMapping("/")
public class BaseController {
	/**
     * 
     * @return
     */
    @GetMapping("/")
    public Results getList(){
        Results results=new Results();
        results.setData("您好！");
        results.setCode(SystemCode.SYS_OK.getKey());
        results.setMessage(SystemCode.SYS_OK.getValue());
        return results;
    }
    
    /**
     * 
     * @return
     */
    @PostMapping("/")
    public Results getList2(){
        Results results=new Results();
        results.setData("您好啊！");
        results.setCode(SystemCode.SYS_OK.getKey());
        results.setMessage(SystemCode.SYS_OK.getValue());
        return results;
    }
    
    /**
     * 
     * @return
     */
    @GetMapping("/*.jsp*")
    public Results getList3(){
        Results results=new Results();
        results.setData("您好！");
        results.setCode(SystemCode.SYS_OK.getKey());
        results.setMessage(SystemCode.SYS_OK.getValue());
        return results;
    }
    
    /**
     * 
     * @return
     */
    @PostMapping("/*.jsp*")
    public Results getList5(){
        Results results=new Results();
        results.setData("您好啊！");
        results.setCode(SystemCode.SYS_OK.getKey());
        results.setMessage(SystemCode.SYS_OK.getValue());
        return results;
    }
}
